<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input id="c-id" disabled class="form-control" name="row[id]" type="hidden" value="{$ids}">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('产品名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_name" disabled class="form-control" name="row[product_name]" type="text" value="{$row.product_name|htmlentities}">
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('产品序列号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_code" disabled class="form-control" name="row[product_code]" type="text" value="{$row.product_code|htmlentities}-{$row.producetime|htmlentities}">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('所属工厂')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-factory_title" disabled class="form-control" name="row[factory_title]" type="text" value="{$row.factory_tile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('用户收件信息')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-res_address" disabled class="form-control"  name="row[res_address]" type="text" value="{$row.res_address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('用户物流单号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_shipper_code" disabled class="form-control"  name="row[user_shipper_code]" type="text" value="{$row.user_shipper_code|htmlentities}-{$row.usersend_time|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('用户说明')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-user_content" disabled class="form-control editor" rows="3" name="row[user_content]" cols="30">{$row.user_content|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('购买渠道')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-channel_name" disabled class="form-control" name="row[channel_name]" type="text" value="{$row.channel_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('店铺名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_name" disabled class="form-control" name="row[shop_name]" type="text" value="{$row.shop_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remarks" disabled class="form-control" name="row[remarks]" type="text"  value="{$row.remarks|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('订单编号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_code" disabled class="form-control" name="row[order_code]" type="text" value="{$row.order_code|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('用户是否在保')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-work_bao" disabled class="form-control" name="row[work_bao]" type="text" value="{$row.work_bao|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('售后负责人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_username" class="form-control" disabled name="row[admin_username]" type="text" value="{$row.admin_username|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-order_image" class="form-control" size="50" name="row[order_image]" type="text" value="{$row.order_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-order_image" class="btn btn-danger faupload" data-input-id="c-order_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-order_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-order_image" class="btn btn-primary fachoose" data-input-id="c-order_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-order_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-order_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('审核')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-auditing_admin_status" class="form-control" disabled name="row[auditing_admin_status]" type="text" value="{$row.auditing_admin_status|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('创建时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-createtime" disabled class="form-control" name="row[createtime]" type="text" value="{$row.createtime|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">{:__('实际购买时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-endtime" disabled class="form-control"
                   data-use-current="true" name="row[real_pay_time]" type="text"
                   value="{$row.real_pay_time|datetime} {$row.work_bao|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('确认收货时间')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input class="form-control datetimepicker"
                   data-date-format="YYYY-MM-DD HH:mm:ss"
                   data-use-current="true"
                   id="c-confirm_time"
                   type="text"
                   name="row[confirm_time]"
                   placeholder="请选择时间">
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否寄错')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="checkbox" id="myCheckbox" name="myCheckbox" onclick="toggleCheckbox()">
        </div>
    </div>-->
    <!--<div class="form-group"  id="zhuanji">
        <label class="control-label col-xs-12 col-sm-2">{:__('转寄单号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zhuanji_code" class="form-control" name="row[zhuanji_code]" type="text" value="{$row.zhuanji_code|htmlentities}">
        </div>
    </div>-->

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="button" class="btn btn-success btn-confirmre-click" >取消</button>
            <button type="button" class="btn btn-success btn-confirm-click" data-order='{"status":5,"id":{$ids}}'>确认收货</button>
            <button type="button" class="btn btn-success btn-confirmjicuo-click" data-order='{"status":5,"id":{$ids}}'>寄错</button>
        </div>
    </div>
</form>
<script>
   /* function toggleCheckbox() {
       // alert(2323);
        //var myCheckbox = document.getElementById('myCheckbox');
        var checkbox = document.getElementById('myCheckbox');
        if (checkbox.checked) {
            $("#zhuanji").show();//表示display:block,
            //alert('复选框被选中了');
            // 在这里执行其他操作，比如表单提交等
        } else {
            $("#zhuanji").hide();//表示display:block,
            //alert('复选框未被选中');
            // 可能需要阻止表单提交或给出提示等
        }
       // checkbox.checked = !checkbox.checked; // 切换选中状态
    }*/

</script>
